package com.xiaodimall.beforesys.service;

import com.xiaodimall.beforesys.pojo.User;
import com.xiaodimall.utils.JsonResult;

import javax.servlet.http.HttpSession;

/**
 * @author wyc
 * @description
 * @ClassName UserService
 * @date 2022/11/24 15:51
 */
public interface UserService {

    //用户注册
    String register(String loginName, String password,String email,String verifyCode,HttpSession httpSession);

    //发送验证码
    JsonResult sendEmailService(String email, HttpSession session);

    //登录功能
    String login(String loginName, String password, String verifyCode,HttpSession httpSession);

    //用户信息修改并返回最新的用户信息
    User updateUserInfo(User mallUser, HttpSession httpSession);
}
